/*
 * Copyright (C) 2012 Le Tuan Anh <anh.takaji@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ezcms.dal.client;

import ezcms.exceptions.DataLayerException;
import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * Test conference functions
 *
 * @author Le Tuan Anh <anh.takaji@gmail.com>
 */
public class CreateSampleData {
    
    private DAOUtil dao = null;
    
    public CreateSampleData() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() throws DataLayerException {
        dao = new DAOUtil();
        System.out.println("-------------------------------------------------");
        System.out.println("[+] Cleaning up ...");
        TestUtil.cleanup(dao);
        System.out.println("-------------------------------------------------");
        System.out.println("Start test case");
        System.out.println("-------------------------------------------------");
    }
    
    @After
    public void tearDown() throws DataLayerException {
    }
    
    @Test
    public void testReview() throws DataLayerException {
        TestUtil.createSampleData(dao);
    }
}
